#!/usr/bin/python
# -*- coding: utf-8 -*-

from multiprocessing.connection import Listener

serv = Listener(('127.0.0.1', 15000), authkey=b'12345')
while True:
    conn = serv.accept()
    while True:
        try:
            (x, y) = conn.recv()
        except EOFError:
            break
        result = x + y
        conn.send(result)
    conn.close()
